﻿using ASoft.Web.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Asoft.Web.Controllers
{
    public class WapLoginController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Login()
        {

            LoginService loginService = new LoginService();
            try
            {
                loginService.Login(Request["code"], Request["cpassword"]);
                return View("RoomRedirect");
            }
            catch (Exception ex)
            {
                ViewData["msg"] = ex.Message;
                return View();
            }
        }
    }
}
